﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="vCliente.aspx.cs" Inherits="LimsWeb.iAdministradors.vCliente" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../Content/css/bootstrap.css" rel="stylesheet" />
    <link href="../Content/css/Colores.css" rel="stylesheet" />
    <title>Clientes</title>
    <style>
        * {
            font-family: Calibri;
        }

        .gvGeneral {
            margin: 0;
        }

        .gvCabecera {
            font-weight: lighter;
            color: white;
            text-align: center;
            background: #428bca;
        }

        .gvFilas {
            text-align: center;
        }

        .grilla {
            width: 100%;
            margin: 0 auto;
        }

        .tab {
            width: 95%;
            margin: 0 auto;
        }

        .tituloInfo {
            border-bottom: 1px solid gray;
            padding: 10px 0px;
            text-align: left;
            padding-left: 20px;
            font-weight: bold;
            opacity: 0.7;
        }

        .grupoBotones {
            margin-top: 20px;
            margin-left: 20px;
        }

        .txts {
            margin-bottom: 4px;
            margin-right: 10px;
            width: 133px;
        }

        .tds {
            width: 70px;
           
        }

        .lbls {
            font-size: 14px;
        }
    </style>

</head>
<body style="background: #eee">
    <form id="form1" runat="server">

        <div style="background: none; width: 340px; display: inline-block; float: left;">
            <div style="background: none; display: inline-block; width: 340px; height: 500px; padding: 20px">
                <table>
                    <tr>
                        <td class="txts">
                            <asp:Label runat="server" CssClass="lbls" Text="Nuevo Cliente "></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="txtNomCliente" Style="width: 143px;"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvNomCLiente" runat="server" ErrorMessage="*" ValidationGroup="ValidarEQP" ForeColor="Red" ControlToValidate="txtNomCliente"></asp:RequiredFieldValidator>
                        </td>
                    </tr>

                </table>

                <asp:Button runat="server" ValidationGroup="ValidarEQP" Style="padding: 3px 10px; margin: 5px 0px 0px 0px; width: 100%" Text="Registrar Cliente" CssClass="btn btn-primary" ID="btnRegistrar" OnClick="btnRegistrar_Click" />
                <asp:Button runat="server" Style="padding: 3px 10px; margin: 2px 0px 5px; width: 100%" Text="Eliminar Cliente" CssClass="btn btn-primary" ID="btnQuitarSeleccionado" OnClientClick="javascript:return confirm('¿Estas seguro que desea eliminar el cliente?');" OnClick="QuitarSeleccionado_Click" />

                <br />

                <asp:ListBox ID="lbClientes" AutoPostBack="true" Style="width: 300px; height: 350px" runat="server" OnSelectedIndexChanged="lbClientes_SelectedIndexChanged"></asp:ListBox>
            </div>
        </div>



        <div style="background: none; padding: 0px 10px 10px 10px; width: 700px; border-radius: 4px; border: 1px solid gray; height: 440px; float: right; margin: 10px">

            <div class="tituloInfo">
                DETALLES DEL CLIENTE
            </div>
            <div style="margin-top: 10px; margin-bottom: 10px">
                <asp:Label runat="server" Style="margin-top: 10px" ID="lbNomEquipo" Text="[Seleccione un cliente]" Font-Bold="true" Font-Size="Medium"></asp:Label>
            </div>

            <style>
                .etqNombre {
                    background: none;
                    width: 70px;
                    margin-left: 10px;
                }
            </style>

            <table>
                <tr>
                    <td style="width: 80px">
                        <div class="etqNombre">
                            <asp:Label runat="server" Style="margin-top: 10px" Text="Nombre" CssClass="lbls"> </asp:Label>
                        </div>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtNombre" ReadOnly class="txts"></asp:TextBox>
                    </td>

                    <td>
                        <div class="etqNombre">
                            <asp:Label runat="server" CssClass="lbls" Style="margin-top: 10px" class="txts" Text="RUC/NIT"> </asp:Label>
                        </div>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtRuc" class="txts"></asp:TextBox>
                    </td>

                    <td>
                        <div class="etqNombre">
                            <asp:Label runat="server" CssClass="lbls" Style="margin-top: 10px" class="txts" Text="Razon Social"> </asp:Label>
                        </div>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtRazonSocial" class="txts"></asp:TextBox>
                    </td>
                </tr>

                <tr>
                    <td>
                        <div class="etqNombre">
                            <asp:Label runat="server" CssClass="lbls" Style="margin-top: 10px" class="txts" Text="Pais"> </asp:Label>
                        </div>
                    </td>
                    <td>
                        <asp:DropDownList runat="server" ID="ddlPais" class="txts">
                            <asp:ListItem Value="AF">Afghanistan</asp:ListItem>
                            <asp:ListItem Value="AX">Åland Islands</asp:ListItem>
                            <asp:ListItem Value="AL">Albania</asp:ListItem>
                            <asp:ListItem Value="DZ">Algeria</asp:ListItem>
                            <asp:ListItem Value="AS">American Samoa</asp:ListItem>
                            <asp:ListItem Value="AD">Andorra</asp:ListItem>
                            <asp:ListItem Value="AO">Angola</asp:ListItem>
                            <asp:ListItem Value="AI">Anguilla</asp:ListItem>
                            <asp:ListItem Value="AQ">Antarctica</asp:ListItem>
                            <asp:ListItem Value="AG">Antigua and Barbuda</asp:ListItem>
                            <asp:ListItem Value="AR">Argentina</asp:ListItem>
                            <asp:ListItem Value="AM">Armenia</asp:ListItem>
                            <asp:ListItem Value="AW">Aruba</asp:ListItem>
                            <asp:ListItem Value="AU">Australia</asp:ListItem>
                            <asp:ListItem Value="AT">Austria</asp:ListItem>
                            <asp:ListItem Value="AZ">Azerbaijan</asp:ListItem>
                            <asp:ListItem Value="BS">Bahamas</asp:ListItem>
                            <asp:ListItem Value="BH">Bahrain</asp:ListItem>
                            <asp:ListItem Value="BD">Bangladesh</asp:ListItem>
                            <asp:ListItem Value="BB">Barbados</asp:ListItem>
                            <asp:ListItem Value="BY">Belarus</asp:ListItem>
                            <asp:ListItem Value="BE">Belgium</asp:ListItem>
                            <asp:ListItem Value="BZ">Belize</asp:ListItem>
                            <asp:ListItem Value="BJ">Benin</asp:ListItem>
                            <asp:ListItem Value="BM">Bermuda</asp:ListItem>
                            <asp:ListItem Value="BT">Bhutan</asp:ListItem>
                            <asp:ListItem Value="BO">Bolivia</asp:ListItem>
                            <asp:ListItem Value="BA">Bosnia and Herzegovina</asp:ListItem>
                            <asp:ListItem Value="BW">Botswana</asp:ListItem>
                            <asp:ListItem Value="BV">Bouvet Island</asp:ListItem>
                            <asp:ListItem Value="BR">Brazil</asp:ListItem>
                            <asp:ListItem Value="IO">British Indian Ocean Territory</asp:ListItem>
                            <asp:ListItem Value="BN">Brunei Darussalam</asp:ListItem>
                            <asp:ListItem Value="BG">Bulgaria</asp:ListItem>
                            <asp:ListItem Value="BF">Burkina Faso</asp:ListItem>
                            <asp:ListItem Value="BI">Burundi</asp:ListItem>
                            <asp:ListItem Value="KH">Cambodia</asp:ListItem>
                            <asp:ListItem Value="CM">Cameroon</asp:ListItem>
                            <asp:ListItem Value="CA">Canada</asp:ListItem>
                            <asp:ListItem Value="CV">Cape Verde</asp:ListItem>
                            <asp:ListItem Value="KY">Cayman Islands</asp:ListItem>
                            <asp:ListItem Value="CF">Central African Republic</asp:ListItem>
                            <asp:ListItem Value="TD">Chad</asp:ListItem>
                            <asp:ListItem Value="CL">Chile</asp:ListItem>
                            <asp:ListItem Value="CN">China</asp:ListItem>
                            <asp:ListItem Value="CX">Christmas Island</asp:ListItem>
                            <asp:ListItem Value="CC">Cocos (Keeling) Islands</asp:ListItem>
                            <asp:ListItem Value="CO">Colombia</asp:ListItem>
                            <asp:ListItem Value="KM">Comoros</asp:ListItem>
                            <asp:ListItem Value="CG">Congo</asp:ListItem>
                            <asp:ListItem Value="CD">Congo, The Democratic Republic of The</asp:ListItem>
                            <asp:ListItem Value="CK">Cook Islands</asp:ListItem>
                            <asp:ListItem Value="CR">Costa Rica</asp:ListItem>
                            <asp:ListItem Value="CI">Cote D'ivoire</asp:ListItem>
                            <asp:ListItem Value="HR">Croatia</asp:ListItem>
                            <asp:ListItem Value="CU">Cuba</asp:ListItem>
                            <asp:ListItem Value="CY">Cyprus</asp:ListItem>
                            <asp:ListItem Value="CZ">Czech Republic</asp:ListItem>
                            <asp:ListItem Value="DK">Denmark</asp:ListItem>
                            <asp:ListItem Value="DJ">Djibouti</asp:ListItem>
                            <asp:ListItem Value="DM">Dominica</asp:ListItem>
                            <asp:ListItem Value="DO">Dominican Republic</asp:ListItem>
                            <asp:ListItem Value="EC">Ecuador</asp:ListItem>
                            <asp:ListItem Value="EG">Egypt</asp:ListItem>
                            <asp:ListItem Value="SV">El Salvador</asp:ListItem>
                            <asp:ListItem Value="GQ">Equatorial Guinea</asp:ListItem>
                            <asp:ListItem Value="ER">Eritrea</asp:ListItem>
                            <asp:ListItem Value="EE">Estonia</asp:ListItem>
                            <asp:ListItem Value="ET">Ethiopia</asp:ListItem>
                            <asp:ListItem Value="FK">Falkland Islands (Malvinas)</asp:ListItem>
                            <asp:ListItem Value="FO">Faroe Islands</asp:ListItem>
                            <asp:ListItem Value="FJ">Fiji</asp:ListItem>
                            <asp:ListItem Value="FI">Finland</asp:ListItem>
                            <asp:ListItem Value="FR">France</asp:ListItem>
                            <asp:ListItem Value="GF">French Guiana</asp:ListItem>
                            <asp:ListItem Value="PF">French Polynesia</asp:ListItem>
                            <asp:ListItem Value="TF">French Southern Territories</asp:ListItem>
                            <asp:ListItem Value="GA">Gabon</asp:ListItem>
                            <asp:ListItem Value="GM">Gambia</asp:ListItem>
                            <asp:ListItem Value="GE">Georgia</asp:ListItem>
                            <asp:ListItem Value="DE">Germany</asp:ListItem>
                            <asp:ListItem Value="GH">Ghana</asp:ListItem>
                            <asp:ListItem Value="GI">Gibraltar</asp:ListItem>
                            <asp:ListItem Value="GR">Greece</asp:ListItem>
                            <asp:ListItem Value="GL">Greenland</asp:ListItem>
                            <asp:ListItem Value="GD">Grenada</asp:ListItem>
                            <asp:ListItem Value="GP">Guadeloupe</asp:ListItem>
                            <asp:ListItem Value="GU">Guam</asp:ListItem>
                            <asp:ListItem Value="GT">Guatemala</asp:ListItem>
                            <asp:ListItem Value="GG">Guernsey</asp:ListItem>
                            <asp:ListItem Value="GN">Guinea</asp:ListItem>
                            <asp:ListItem Value="GW">Guinea-bissau</asp:ListItem>
                            <asp:ListItem Value="GY">Guyana</asp:ListItem>
                            <asp:ListItem Value="HT">Haiti</asp:ListItem>
                            <asp:ListItem Value="HM">Heard Island and Mcdonald Islands</asp:ListItem>
                            <asp:ListItem Value="VA">Holy See (Vatican City State)</asp:ListItem>
                            <asp:ListItem Value="HN">Honduras</asp:ListItem>
                            <asp:ListItem Value="HK">Hong Kong</asp:ListItem>
                            <asp:ListItem Value="HU">Hungary</asp:ListItem>
                            <asp:ListItem Value="IS">Iceland</asp:ListItem>
                            <asp:ListItem Value="IN">India</asp:ListItem>
                            <asp:ListItem Value="ID">Indonesia</asp:ListItem>
                            <asp:ListItem Value="IR">Iran, Islamic Republic of</asp:ListItem>
                            <asp:ListItem Value="IQ">Iraq</asp:ListItem>
                            <asp:ListItem Value="IE">Ireland</asp:ListItem>
                            <asp:ListItem Value="IM">Isle of Man</asp:ListItem>
                            <asp:ListItem Value="IL">Israel</asp:ListItem>
                            <asp:ListItem Value="IT">Italy</asp:ListItem>
                            <asp:ListItem Value="JM">Jamaica</asp:ListItem>
                            <asp:ListItem Value="JP">Japan</asp:ListItem>
                            <asp:ListItem Value="JE">Jersey</asp:ListItem>
                            <asp:ListItem Value="JO">Jordan</asp:ListItem>
                            <asp:ListItem Value="KZ">Kazakhstan</asp:ListItem>
                            <asp:ListItem Value="KE">Kenya</asp:ListItem>
                            <asp:ListItem Value="KI">Kiribati</asp:ListItem>
                            <asp:ListItem Value="KP">Korea, Democratic People's Republic of</asp:ListItem>
                            <asp:ListItem Value="KR">Korea, Republic of</asp:ListItem>
                            <asp:ListItem Value="KW">Kuwait</asp:ListItem>
                            <asp:ListItem Value="KG">Kyrgyzstan</asp:ListItem>
                            <asp:ListItem Value="LA">Lao People's Democratic Republic</asp:ListItem>
                            <asp:ListItem Value="LV">Latvia</asp:ListItem>
                            <asp:ListItem Value="LB">Lebanon</asp:ListItem>
                            <asp:ListItem Value="LS">Lesotho</asp:ListItem>
                            <asp:ListItem Value="LR">Liberia</asp:ListItem>
                            <asp:ListItem Value="LY">Libyan Arab Jamahiriya</asp:ListItem>
                            <asp:ListItem Value="LI">Liechtenstein</asp:ListItem>
                            <asp:ListItem Value="LT">Lithuania</asp:ListItem>
                            <asp:ListItem Value="LU">Luxembourg</asp:ListItem>
                            <asp:ListItem Value="MO">Macao</asp:ListItem>
                            <asp:ListItem Value="MK">Macedonia, The Former Yugoslav Republic of</asp:ListItem>
                            <asp:ListItem Value="MG">Madagascar</asp:ListItem>
                            <asp:ListItem Value="MW">Malawi</asp:ListItem>
                            <asp:ListItem Value="MY">Malaysia</asp:ListItem>
                            <asp:ListItem Value="MV">Maldives</asp:ListItem>
                            <asp:ListItem Value="ML">Mali</asp:ListItem>
                            <asp:ListItem Value="MT">Malta</asp:ListItem>
                            <asp:ListItem Value="MH">Marshall Islands</asp:ListItem>
                            <asp:ListItem Value="MQ">Martinique</asp:ListItem>
                            <asp:ListItem Value="MR">Mauritania</asp:ListItem>
                            <asp:ListItem Value="MU">Mauritius</asp:ListItem>
                            <asp:ListItem Value="YT">Mayotte</asp:ListItem>
                            <asp:ListItem Value="MX">Mexico</asp:ListItem>
                            <asp:ListItem Value="FM">Micronesia, Federated States of</asp:ListItem>
                            <asp:ListItem Value="MD">Moldova, Republic of</asp:ListItem>
                            <asp:ListItem Value="MC">Monaco</asp:ListItem>
                            <asp:ListItem Value="MN">Mongolia</asp:ListItem>
                            <asp:ListItem Value="ME">Montenegro</asp:ListItem>
                            <asp:ListItem Value="MS">Montserrat</asp:ListItem>
                            <asp:ListItem Value="MA">Morocco</asp:ListItem>
                            <asp:ListItem Value="MZ">Mozambique</asp:ListItem>
                            <asp:ListItem Value="MM">Myanmar</asp:ListItem>
                            <asp:ListItem Value="NA">Namibia</asp:ListItem>
                            <asp:ListItem Value="NR">Nauru</asp:ListItem>
                            <asp:ListItem Value="NP">Nepal</asp:ListItem>
                            <asp:ListItem Value="NL">Netherlands</asp:ListItem>
                            <asp:ListItem Value="AN">Netherlands Antilles</asp:ListItem>
                            <asp:ListItem Value="NC">New Caledonia</asp:ListItem>
                            <asp:ListItem Value="NZ">New Zealand</asp:ListItem>
                            <asp:ListItem Value="NI">Nicaragua</asp:ListItem>
                            <asp:ListItem Value="NE">Niger</asp:ListItem>
                            <asp:ListItem Value="NG">Nigeria</asp:ListItem>
                            <asp:ListItem Value="NU">Niue</asp:ListItem>
                            <asp:ListItem Value="NF">Norfolk Island</asp:ListItem>
                            <asp:ListItem Value="MP">Northern Mariana Islands</asp:ListItem>
                            <asp:ListItem Value="NO">Norway</asp:ListItem>
                            <asp:ListItem Value="OM">Oman</asp:ListItem>
                            <asp:ListItem Value="PK">Pakistan</asp:ListItem>
                            <asp:ListItem Value="PW">Palau</asp:ListItem>
                            <asp:ListItem Value="PS">Palestinian Territory, Occupied</asp:ListItem>
                            <asp:ListItem Value="PA">Panama</asp:ListItem>
                            <asp:ListItem Value="PG">Papua New Guinea</asp:ListItem>
                            <asp:ListItem Value="PY">Paraguay</asp:ListItem>
                            <asp:ListItem Selected="True" Value="PE">Peru</asp:ListItem>
                            <asp:ListItem Value="PH">Philippines</asp:ListItem>
                            <asp:ListItem Value="PN">Pitcairn</asp:ListItem>
                            <asp:ListItem Value="PL">Poland</asp:ListItem>
                            <asp:ListItem Value="PT">Portugal</asp:ListItem>
                            <asp:ListItem Value="PR">Puerto Rico</asp:ListItem>
                            <asp:ListItem Value="QA">Qatar</asp:ListItem>
                            <asp:ListItem Value="RE">Reunion</asp:ListItem>
                            <asp:ListItem Value="RO">Romania</asp:ListItem>
                            <asp:ListItem Value="RU">Russian Federation</asp:ListItem>
                            <asp:ListItem Value="RW">Rwanda</asp:ListItem>
                            <asp:ListItem Value="SH">Saint Helena</asp:ListItem>
                            <asp:ListItem Value="KN">Saint Kitts and Nevis</asp:ListItem>
                            <asp:ListItem Value="LC">Saint Lucia</asp:ListItem>
                            <asp:ListItem Value="PM">Saint Pierre and Miquelon</asp:ListItem>
                            <asp:ListItem Value="VC">Saint Vincent and The Grenadines</asp:ListItem>
                            <asp:ListItem Value="WS">Samoa</asp:ListItem>
                            <asp:ListItem Value="SM">San Marino</asp:ListItem>
                            <asp:ListItem Value="ST">Sao Tome and Principe</asp:ListItem>
                            <asp:ListItem Value="SA">Saudi Arabia</asp:ListItem>
                            <asp:ListItem Value="SN">Senegal</asp:ListItem>
                            <asp:ListItem Value="RS">Serbia</asp:ListItem>
                            <asp:ListItem Value="SC">Seychelles</asp:ListItem>
                            <asp:ListItem Value="SL">Sierra Leone</asp:ListItem>
                            <asp:ListItem Value="SG">Singapore</asp:ListItem>
                            <asp:ListItem Value="SK">Slovakia</asp:ListItem>
                            <asp:ListItem Value="SI">Slovenia</asp:ListItem>
                            <asp:ListItem Value="SB">Solomon Islands</asp:ListItem>
                            <asp:ListItem Value="SO">Somalia</asp:ListItem>
                            <asp:ListItem Value="ZA">South Africa</asp:ListItem>
                            <asp:ListItem Value="GS">South Georgia and The South Sandwich Islands</asp:ListItem>
                            <asp:ListItem Value="ES">Spain</asp:ListItem>
                            <asp:ListItem Value="LK">Sri Lanka</asp:ListItem>
                            <asp:ListItem Value="SD">Sudan</asp:ListItem>
                            <asp:ListItem Value="SR">Suriname</asp:ListItem>
                            <asp:ListItem Value="SJ">Svalbard and Jan Mayen</asp:ListItem>
                            <asp:ListItem Value="SZ">Swaziland</asp:ListItem>
                            <asp:ListItem Value="SE">Sweden</asp:ListItem>
                            <asp:ListItem Value="CH">Switzerland</asp:ListItem>
                            <asp:ListItem Value="SY">Syrian Arab Republic</asp:ListItem>
                            <asp:ListItem Value="TW">Taiwan, Province of China</asp:ListItem>
                            <asp:ListItem Value="TJ">Tajikistan</asp:ListItem>
                            <asp:ListItem Value="TZ">Tanzania, United Republic of</asp:ListItem>
                            <asp:ListItem Value="TH">Thailand</asp:ListItem>
                            <asp:ListItem Value="TL">Timor-leste</asp:ListItem>
                            <asp:ListItem Value="TG">Togo</asp:ListItem>
                            <asp:ListItem Value="TK">Tokelau</asp:ListItem>
                            <asp:ListItem Value="TO">Tonga</asp:ListItem>
                            <asp:ListItem Value="TT">Trinidad and Tobago</asp:ListItem>
                            <asp:ListItem Value="TN">Tunisia</asp:ListItem>
                            <asp:ListItem Value="TR">Turkey</asp:ListItem>
                            <asp:ListItem Value="TM">Turkmenistan</asp:ListItem>
                            <asp:ListItem Value="TC">Turks and Caicos Islands</asp:ListItem>
                            <asp:ListItem Value="TV">Tuvalu</asp:ListItem>
                            <asp:ListItem Value="UG">Uganda</asp:ListItem>
                            <asp:ListItem Value="UA">Ukraine</asp:ListItem>
                            <asp:ListItem Value="AE">United Arab Emirates</asp:ListItem>
                            <asp:ListItem Value="GB">United Kingdom</asp:ListItem>
                            <asp:ListItem Value="US">United States</asp:ListItem>
                            <asp:ListItem Value="UM">United States Minor Outlying Islands</asp:ListItem>
                            <asp:ListItem Value="UY">Uruguay</asp:ListItem>
                            <asp:ListItem Value="UZ">Uzbekistan</asp:ListItem>
                            <asp:ListItem Value="VU">Vanuatu</asp:ListItem>
                            <asp:ListItem Value="VE">Venezuela</asp:ListItem>
                            <asp:ListItem Value="VN">Viet Nam</asp:ListItem>
                            <asp:ListItem Value="VG">Virgin Islands, British</asp:ListItem>
                            <asp:ListItem Value="VI">Virgin Islands, U.S.</asp:ListItem>
                            <asp:ListItem Value="WF">Wallis and Futuna</asp:ListItem>
                            <asp:ListItem Value="EH">Western Sahara</asp:ListItem>
                            <asp:ListItem Value="YE">Yemen</asp:ListItem>
                            <asp:ListItem Value="ZM">Zambia</asp:ListItem>
                            <asp:ListItem Value="ZW">Zimbabwe</asp:ListItem>
                        </asp:DropDownList>
                    </td>

                    <td>
                        <div class="etqNombre">
                            <asp:Label runat="server" CssClass="lbls" Style="margin-top: 10px" class="txts" Text="Ciudad"> </asp:Label>
                        </div>
                    </td>
                    <td>
                        <asp:DropDownList runat="server" ID="ddlCiudad" class="txts"></asp:DropDownList>
                    </td>

                    <td>
                        <div class="etqNombre">
                            <asp:Label runat="server" CssClass="lbls" Style="margin-top: 10px" class="txts" Text="Direccion"> </asp:Label>
                        </div>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtDireccion" class="txts"> </asp:TextBox>
                    </td>
                </tr>

            </table>
            <asp:Button runat="server" ID="btnGuardarCambios" Text="Actualizar" OnClientClick="javascript:return confirm('¿Estas seguro que desea actualizar los datos del cliente?');" Style="margin-left: 10px; padding: 1px 40px; float: right; margin-right: 23px; margin-top: 10px" CssClass="btn btn-primary" OnClick="btnGuardarCambios_Click" />
            <br />

            <div class="tituloInfo">
                CONTACTOS
            </div>
            <br />
            <table>
                <tr>
                    <td class="tds">
                        <asp:Label runat="server" Style="margin-top: 10px" CssClass="lbls" Text="Nombre" Font-Size="Medium"> </asp:Label>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtNomContacto" CssClass="txts" Width="130px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvContacto" ControlToValidate="txtNomContacto" ValidationGroup="ABC" runat="server" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>

                    </td>
                </tr>
                <tr>

                    <td class="tds">
                        <asp:Label runat="server" Style="margin-top: 10px" CssClass="lbls" Text="Telefono" Font-Size="Medium"> </asp:Label>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtTelefono" CssClass="txts" Width="130px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvTelefono" runat="server" ErrorMessage="*" ValidationGroup="ABC" ForeColor="Red" ControlToValidate="txtTelefono"></asp:RequiredFieldValidator>
                    </td>

                    <td class="tds">
                        <asp:Label runat="server" Style="margin-top: 10px" CssClass="lbls" Text="Correo" Font-Size="Medium"> </asp:Label>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtCorreo" CssClass="txts" Width="192px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvCorreo" runat="server" ErrorMessage="*" ValidationGroup="ABC" ForeColor="Red" ControlToValidate="txtCorreo"></asp:RequiredFieldValidator>
                    </td>
                    <td>
                        <asp:Button runat="server" ID="btnAgregar" CssClass="btn btn-primary" ValidationGroup="ABC" Text="Agregar" Style="margin-left: 10px; padding: 1px 10px;" OnClick="btnAgregar_Click" Width="141px"></asp:Button>
                    </td>
                </tr>

            </table>



            <div style="margin-top: 10px; width: 100%; height: 120px; background: #ddd;">


                <div class="grilla" style="height: 150px; background: none; overflow-y: auto;">
                    <asp:GridView ID="gvContactos" runat="server" AutoGenerateColumns="False"  HeaderStyle-CssClass="gvCabecera" Width="100%" CssClass="gvGeneral" RowStyle-CssClass="gvFilas" CellPadding="4"  ForeColor="#333333" GridLines="None">
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        <Columns>
                            <asp:BoundField HeaderText="Nombre" DataField="NombreContacto"
                                SortExpression="NombreContacto" Visible="true">
                                <HeaderStyle CssClass="gvCabecera"></HeaderStyle>

                            </asp:BoundField>
                            <asp:BoundField HeaderText="Telefono" DataField="TelefonoContacto"
                                SortExpression="TelefonoContacto"></asp:BoundField>

                            <asp:BoundField HeaderText="Email" DataField="EmailContacto" HeaderStyle-CssClass="gvCabecera"
                                SortExpression="EmailContacto"></asp:BoundField>

                            <%--OnCommand="btnEliminar_Command"--%>
                            <asp:TemplateField HeaderText="Eliminar">
                                <ItemTemplate>
                                    <asp:ImageButton ID="btnEliminar" runat="server" Width="16px" ImageUrl="../Content/img/Eliminar.png"
                                        CommandArgument='<%# Eval("NombreContacto") %>' OnClientClick="javascript:return confirm('¿Confirma Eliminacion del registro?');"
                                        ToolTip="Eliminar" ImageAlign="Baseline" />
                                </ItemTemplate>
                                <ItemStyle Width="80px" />
                            </asp:TemplateField>
                        </Columns>
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle HorizontalAlign="Center" CssClass="gvCabecera " />

                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />

                        <RowStyle CssClass="gvFilas" BackColor="#F7F6F3" ForeColor="#333333"></RowStyle>
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
                </div>



            </div>

            <%--<table>
                <tr>
                    <td>
                        <div style="margin-left: 10px; margin-bottom: 10px">
                            <asp:Label runat="server" Style="margin-top: 10px" Text="Parametro" Font-Size="Medium"> </asp:Label>
                        </div>

                    </td>
                    <td>
                        <asp:DropDownList runat="server" ID="ddlParametros" Style="margin-left: 10px; margin-bottom: 10px" Width="150px"></asp:DropDownList>
                    </td>
                    <td>
                        <asp:Button runat="server" ID="btnIngresarParametro" CssClass="btn btn-primary" Text="Ingresar" Style="margin-left: 10px; padding: 1px 10px; margin-bottom: 10px"  />
                    </td>
                </tr>
            </table>

            <asp:Button runat="server" Style="padding: 3px 10px; margin-left:13px; margin-right: 0px; margin-top: 0px; margin-bottom: 5px;" Text="Quitar Seleccionado" CssClass="btn btn-primary" ID="QuitarParamSeleccionado"  Height="31px"  />

            <div style="background: none; height:330px; margin-left:15px">
                <asp:ListBox ID="lbParametro" AutoPostBack="false" Style="width: 300px; height: 330px" runat="server"></asp:ListBox>
            </div>--%>


            <%--<asp:Button runat="server" Text="Guardar Parametros" CssClass="btn btn-primary" Style="width: 90%; margin: 10px auto; margin-left: 12px" />--%>
        </div>
        <asp:Button runat="server" ID="btnSalir" Text="Salir" OnClientClick="window.close();" Style="margin-left: 10px; padding: 3px 50px; float: right; margin-right: 23px; margin-top: 10px" CssClass="btn btn-primary" />
        <!--OnClick="btnGuardarCambios_Click"-->


    </form>
</body>
</html>
